<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="header.jsp"></jsp:include>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<ol class="breadcrumb">
			<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
			<li><a href="#">Examples</a></li>
			<li class="active">success</li>
		</ol>
	</section>

	<!-- Main content -->
	<section class="content">
		<div class="error-page">
			<div class="error-content">
				<h3>
					<i class="fa fa-warning text-red"></i>
					<c:out value="${msg}" />成功,<font id="time">3</font>
					秒后返回.
				</h3>
			</div>
		</div>
		<!-- /.error-page -->

	</section>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<jsp:include page="footer.jsp"></jsp:include>

<script>
 
  function countdown(){
	  console.log($("#time").html());
	if($("#time").html()!=0)
		{
		$("#time").html(parseInt($("#time").html())-1);
		setInterval("countdown()",1000);
		}
	else
		{location.href=document.referrer;}
  }
  
  countdown();
  
  </script>